<?php
if (!defined('IN_CONTEXT')) die('access violation error!');

if($isExist) 
{
	echo '<p style="margin-top:20px;font-size:12px;">数据为空</p>';
	die;
}
else 
{
?>

<script type="text/javascript" language="javascript">
<!--
function check_edituser_info(thisForm)
{
	$("#stat").css({"display":"block"});
	$("#stat").html("正在保存内容......");
	_ajax_submit(thisForm, on_success, on_failure);
	return false;
}

function on_success(response)
{
	response1 = eval("("+response+")");
	var stat = document.getElementById("stat");
	if(response1.result == 'ok')
	{
		alert(response1.sucmsg);
		stat.innerHTML = "OK，正在重定向......";
		reloadPage();
	}
	else if(response1.result == 'error')
	{
		stat.innerHTML = response1.errmsg;
	}
}

function on_failure(response)
{
	var stat = document.getElementById("stat");
	stat.innerHTML = response;
}
-->
</script>
<style type='text/css'>
table {
	margin-top:20px;
}
table td {
	text-align:left;
}
</style>
<div id="stat" style="display:none;"></div>
<form method="post" action="index.php" onsubmit="javascript:return check_edituser_info(this);">
	<table width="100%" border="0" cellpadding="2" cellspacing="0" bordercolor="#4c4c4c">
	<tr><td>*用户名:</td><td><input type="text" name="name" value="<?php echo $user_info['u_name'];?>"/></td></tr>
	<tr><td>电子邮件:</td><td><input type="text" name="email" value="<?php echo $user_info['u_email'];?>"></td></tr>
	<tr><td>联系电话:</td><td><input type="text" name="cellphone" value="<?php echo $user_info['u_cellphone'];?>"></td></tr>
	<tr><td>密码:</td><td><input type="password" name="password"/></td></tr>
	<tr><td>密码确认:</td><td><input type="password" name="password_again"/></td></tr>
	</table>
	<input type="submit" value="修改"/>
	<input type="reset" value="重置"/>
	<input type="hidden" name="u_id" value="<?php echo $user_info['u_id'];?>"/>
	<input type="hidden" name="_m" value="<?php echo $next_controller;?>"/>
	<input type="hidden" name="_a" value="<?php echo $next_action;?>"/>
</form>
<?php }?>